from django.db import models

# Create your models here.
class Host(models.Model):
    hostname = models.CharField(max_length=30)
    ipaddr = models.IPAddressField()
    program = models.CharField(max_length=30)

    def __unicode__(self):
        return self.hostname


# class Server(models.Model):
#     hostname = models.CharField(max_length=30)
#     ipaddr = models.IPAddressField()
#     webroot = 

#     def __unicode__(self):
#         return self.hostname

# class FabuEnv(models.Model):
#     env = models.CharField(max_length=30)

#     def __unicode__(self):
#         return self.env

class Project(models.Model):
    name = models.CharField(max_length=100)
 #   servers = models.ManyToManyField(Server)

    def __unicode__(self):
        return self.name